package cn.anecansaitin.jep.parser.ast.node.statement;

import cn.anecansaitin.jep.parser.ast.node.expression.Expression;

public class For extends Statement{
    private final Statement initializer;
    private final Expression condition;
    private final Expression increment;
    private final Statement body;

    public For(Statement initializer, Expression condition, Expression increment, Statement body,int line, int column) {
        super(line, column);
        this.initializer = initializer;
        this.condition = condition;
        this.increment = increment;
        this.body = body;
    }

    public Statement initializer() {
        return initializer;
    }

    public Expression condition() {
        return condition;
    }

    public Expression increment() {
        return increment;
    }

    public Statement body() {
        return body;
    }
}